// 声明命名空间，除了 export 的属性，其他属性在外部不可访问
namespace Home {
    class Header {
        constructor() {
            const el = document.createElement('div');
            el.innerText = 'This is Header'
            document.body.appendChild(el);
        }
    }

    class Content {
        constructor() {
            const el = document.createElement('div');
            el.innerText = 'This is Content'
            document.body.appendChild(el);
        }
    }

    class Footer {
        constructor() {
            const el = document.createElement('div');
            el.innerText = 'This is Footer'
            document.body.appendChild(el);
        }
    }

    export class Page {
        constructor() {
            new Header()
            new Content()
            new Footer()
        }
    }
}
